-
Notifications
You must be signed in to change notification settings - Fork 1k
Adding STORM32_V1_31_RC variant #1375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @owennewo
Thanks for your contribution.
Nice first PR moreover you are the first contributor with the new format.
Hope it was not so hard, wiki will be updated soon.
In addition to my comments could you also update the README.md to reference it in the ESC section.
Moreover it is not very clear for me which board STorM32 board you add?
Is it this one ? http://www.olliw.eu/storm32bgc-wiki/STorM32_Boards#STorM32-BGC_v1.3
In that case why RC
instead of BGC
?
Tthank you in advance.
variants/STM32F1xx/F103R(C-D-E)T/PeripheralPins_STORM32_V1_31_RC.c
Outdated
Show resolved
Hide resolved
variants/STM32F1xx/F103R(C-D-E)T/PeripheralPins_STORM32_V1_31_RC.c
Outdated
Show resolved
Hide resolved
variants/STM32F1xx/F103R(C-D-E)T/PeripheralPins_STORM32_V1_31_RC.c
Outdated
Show resolved
Hide resolved
variants/STM32F1xx/F103R(C-D-E)T/PeripheralPins_STORM32_V1_31_RC.c
Outdated
Show resolved
Hide resolved
variants/STM32F1xx/F103R(C-D-E)T/PeripheralPins_STORM32_V1_31_RC.c
Outdated
Show resolved
Hide resolved
I've repushed with a README. Yes that link is correct. RC refers to STM32F103RC which is by far the most common flash size version (and is the one I have), but as this board is open source, people have made RB, RE and RG versions which I've not tested and don't really know whether they'll work. If you'd prefer me to remove the RC from the name, so that others can later add support for different flash sizes then I can do that. I can also add BGC (which I think stands for Brushless Gimbal Controller) if you like. |
Thanks for the README. Then adding in the boards.txt:
And in each files adding the correct switch: In fact the linker script is preprocessed so the correct flash and RAM size will be used: Arduino_Core_STM32/variants/STM32F1xx/F103R(C-D-E)T/ldscript.ld Lines 36 to 41 in 0a3fa54
Note that you didn't fix my other review comments. |
…RC.c Co-authored-by: Frederic Pillon <[email protected]>
…RC.c Co-authored-by: Frederic Pillon <[email protected]>
…RC.c Co-authored-by: Frederic Pillon <[email protected]>
…RC.c Co-authored-by: Frederic Pillon <[email protected]>
…RC.c Co-authored-by: Frederic Pillon <[email protected]>
Co-authored-by: Frederic Pillon <[email protected]>
Co-authored-by: Frederic Pillon <[email protected]>
Co-authored-by: Frederic Pillon <[email protected]>
Co-authored-by: Frederic Pillon <[email protected]>
I'll retest after accepting your changes. The Serial3/SerialUSB took me a while to get working automatically so this is the area I'm not confident in - perhaps something else is missing in this area. Regaring RC/RB/RE/RG versions of this board - I think I confused myself and you RC - exists |
OK so we can kept only one variant.
I'm confident 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR LGTM. Only one question about the HAL_SD_MODULE_ENABLED
.
This will allow #define Serial SerialUSB
Co-authored-by: Frederic Pillon <[email protected]>
I found the issue - ESC_board.menu was missing Hopefully this is ready to merge |
Nice catch I missed that. 🙄
Yes, I've made a small update of USB menu entry. |
Summary
Adding STORM32_V1_31_RC variantI
I've placed this in the ESC_board menu - technically it is a 3axis gimbal controller (not an ESC) but it can be used as an ESC for smaller motors.
This is a very popular board designed by Olliw (I have no affiliation).
http://www.olliw.eu/storm32bgc-wiki/Main_Page
Validation
I've tested this using SimpleFOC library and have most things working
Here is an example sketch of it in use:
https://gist.github.com/owennewo/68c3de58d3e14b702552f0c149de41b0